home *** CD-ROM | disk | FTP | other *** search
- From: benni@phil15.uni-sb.de (Benjamin Lorenz)
- Subject: Re: removing a file
- Date: Tue, 10 May 1994 16:32:33 +0200 (MET DST)
- In-Reply-To: <9405072002.AA07402@topo.matups.fr> from "Thierry Bousch" at May 7, 94 10:02:22 pm
- Mime-Version: 1.0
-
- > In MiNT 1.10, you can only remove a file in a directory iff:
- >
- > (1) you have write permission to the directory,
- > (2) you own the file.
- ^^^^^^^^^^^^^^^^
- That's right if the sticky-bit is set. Otherwise, I should be allowed
- to remove ANY file in the directory!
-
- The problem is: I need write permission for the file. Somebody included
- the check of the file modes in Mint 1.10.
- But that is totally bullshit! I need write permission for the
- *directory*, and NOT for the *file* itself to be allowed to remove it.
-
- Try this in Mint 1.10:
- % touch hello
- % chmod 400 hello
- % rm -f hello
- rm: hello: access denied
-
- :-\
-
- I removed these checks from the Fdelete() call and everything works
- better again! (including elm that creates it's lockfiles readonly).
-
- Benni
-
- --
- Benjamin Lorenz, Brunnenweg 33, D-66133 Saarbruecken
- Phone: +49 681 815702, E-mail: lorenz@dfki.uni-sb.de
-
-